package org.gd.rest.jersey.server;

import com.google.inject.servlet.GuiceFilter;
import com.sun.grizzly.http.embed.GrizzlyWebServer;
import com.sun.grizzly.http.servlet.ServletAdapter;

public class App {

    public static void main(String...args) throws Exception {

        ServletAdapter adapter = new ServletAdapter(new DummyServlet());
		adapter.addServletListener(Config.class.getName());
        adapter.addFilter(new GuiceFilter(), "GuiceFilter", null);

        GrizzlyWebServer server = new GrizzlyWebServer(8888);
		server.addGrizzlyAdapter(adapter, new String[]{ "/" });
		server.start();
	}
}
